package com.haoran.dwz.service;

import java.util.List;

import com.haoran.dwz.domain.entities.Permission;
import com.haoran.dwz.domain.entities.SysMenuEntity;
import com.haoran.dwz.domain.pojo.PermissionVO4Add;
import com.haoran.dwz.domain.pojo.PermissionVO4Update;

public interface PermissionService {

	List<Permission> listAll();

	List<Permission> treeListPermissions();
	
	List<Permission> treePermissions();

	Permission save(Permission permission);

	/**
	 * 新增
	 * @param permissionVO
	 * @return
	 */
	Permission newAdd(PermissionVO4Add permissionVO);

	void delete(String id);

	void delete(String id, boolean subInclude);

	Permission update(PermissionVO4Update permissionVO4Update);

	List<SysMenuEntity> getUserMenuList();

}
